<template>
	<view>
		<navbar title="订单中心"></navbar>
		<view class="site-box">
			<view class="site-list fa jcsb" @click="goOrder(1)">
				<view>取送订单</view>
				<image class="right-icon" src="../../static/right.png" mode=""></image>
			</view>
			<view class="site-list fa jcsb" @click="goOrder(2)">
				<view>商城订单</view>
				<image class="right-icon" src="../../static/right.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			goOrder(index) {
				uni.setStorageSync('orderTab', index)
				uni.switchTab({
					url: '/pages/order/order'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.site-box{
		margin-top: 16rpx;
		padding: 0 24rpx;
		background-color: #fff;
		.site-list{
			padding: 32rpx 0;
			border-bottom: 1rpx solid #E6E6E6;
			font-size: 30rpx;
			&:last-child{
				border-bottom: none;
			}
			.right-icon{
				width: 30rpx;
				height: 30rpx;
			}
		}
	}
</style>
